import request from '@/utils/request'

// 查询机构简介列表
export function listIntro(query) {
  return request({
    url: '/coordination/intro/list',
    method: 'get',
    params: query
  })
}

// 查询机构简介详细
export function getIntro(id) {
  return request({
    url: '/coordination/intro/' + id,
    method: 'get'
  })
}

// 新增机构简介
export function addIntro(data) {
  return request({
    url: '/coordination/intro',
    method: 'post',
    data: data
  })
}

// 修改机构简介
export function updateIntro(data) {
  return request({
    url: '/coordination/intro',
    method: 'put',
    data: data
  })
}

// 删除机构简介
export function delIntro(id) {
  return request({
    url: '/coordination/intro/' + id,
    method: 'delete'
  })
}


// 查询机构简介详细
export function getIntroDept(id) {
  return request({
    url: '/coordination/intro/dept/' + id,
    method: 'get'
  })
}